const state = {
    data: [],
    pageTotal: 0,
    query: {
        pageIndex: 1,
        pageSize: 10,
        checked: false,
        show: false,
        id: null,
        updateBy: null,
        source: null,
        format: null,
        status: null,
    },
}

const mutations = {
    SET_PICTUREMANAGE_DATA: (state, data) => {
        state.data = data
    },
    SET_PICTUREMANAGE_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal
    },
    SET_PICTUREMANAGE_QUERY: (state, query) => {
        state.query = query
    }
}


// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {
    // ...
}

export default {
    state,
    mutations,
    actions
}